package com.hotel.customersystem.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * (CustomerCollection)表实体类
 * @author makejava
 * @since 2022-09-30 16:06:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "customer_collection")
public class CustomerCollection implements Serializable{

    private static final long serialVersionUID = -6694369082432302338L;
    //收藏id
    @TableId(value = "collection_id",type = IdType.AUTO)
    private Integer collectionId;
    //酒店id
    private Integer hotelId;
    //用户id
    private Integer userId;
    //收藏时间
    private LocalDateTime collectDatetime;
    //取消时间
    private LocalDateTime cancelDatetime;
    //收藏记录状态(1.收藏 0.未收藏)
    private Integer collectionStatus;
    //行锁
    private Integer version;
    //状态
    private Integer state;
    //创建时间
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;
    //备用字段01
    private String standby01;
    //备用字段02
    private String standby02;

    @Transient
    @TableField(exist = false)
    private String hotelName;

    @Transient
    @TableField(exist = false)
    private String hotelImg;

    @Transient
    @TableField(exist = false)
    private Integer starRanting;

}

